package com.xiaochangwei.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @since 2017年3月8日 下午3:43:11
 * @author 肖昌伟 317409898@qq.com
 * @description
 */

@Controller
public class PageController {
	
	@RequestMapping("{path}.html")
	public ModelAndView index(@PathVariable("path") String path, ModelAndView mv) {
		mv.setViewName(path);
		return mv;
	}
}
